<!doctype html>
<html lang="zh-CN" ng-app>
<head>
    <meta charset="UTF-8">
    <title>Angular</title>
</head>
<body>
<div>
    <input type="text" ng-model="a.text"/>
    <p>{{a.text}},Merry Christmas</p>
    <div ng-controller="GreetCtrl">
        Hello {{name}}!
    </div>
    <div ng-controller="ListCtrl">
        <ol>
            <li ng-repeat="name in names">
                {{name}} from {{department}}
            </li>
        </ol>
    </div>
    <!-- 讲解$scope 和 $rootscope -->

</div>
<script type="text/javascript" src="dist/js/lib/angular.min.js"></script>
<script type="text/javascript" src="src/js/ngmodel.js"></script>
</body>
</html>